<script lang="ts" setup>
import { ref } from 'vue'

</script>

<template>
  <div class="sales">
    <div class="content" v-for="item in 4" :key="item">
      <div class="top">
        <div class="title">访客数</div>
        <span class="date"> <el-tag type="success">日</el-tag></span>
      </div>
      <el-divider />
      <div class="bottom">
        <div class="avatar">
          <span>2000</span>
          <span> <el-avatar :size="50"
              src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png" /></span>
        </div>
        <div class="num">
          <div class="total">总访客数</div>
          <div class="count">30000</div>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.sales{
  width: 100%;
  height: 200px;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  .content{
    display: flex;
    flex-direction: column;
    background-color: #fff;
    .top{
      height: 50px;
      width: 100%;
      padding: 0 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .bottom{
      display: flex;
      flex-direction: column;
      padding: 20px;
      gap: 20px;
      justify-content: space-between;
      .avatar{
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      .num{
      display: flex;
        justify-content: space-between;
        align-items: center;
        color: #909399;
      }
    }
  }
}
</style>